//==============================================================================
#include "CApp.h"

//==============================================================================
void CApp::OnRender() {
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    glLoadIdentity();

    if(Player) {
        for(unsigned int i = 0;i < MAX_CLIENTS;i++) {
            CPlayer::PlayerList[i].OnRender();
        }
    }

    //Turn on Alpha blending to the default
    //If you change this anywhere, change it back afterwards
    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    glEnable(GL_BLEND);

    SDL_GL_SwapBuffers(); //Swap me
}

//==============================================================================
